class LifeReportRequest {
  final String topicId;
  final String reportType; // 0-广告骚扰 1-盗图侵权 2-人身攻击 3-色情低俗 4-违法违规 5-涉嫌诈骗 6-其他
  final String? reportReason; // 举报原因，当选择"其他"时填写

  LifeReportRequest({
    required this.topicId,
    required this.reportType,
    this.reportReason,
  });

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{
      'topicId': topicId,
      'reportType': reportType,
    };
    if (reportReason != null && reportReason!.isNotEmpty) {
      map['reportReason'] = reportReason;
    }
    return map;
  }
}

